home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
utilities
/
pu118.dms
/
pu118.adf
/
Utilities
/
Auto-Script
< prev
next >
Wrap
AmigaDOS Script File
|
1991-04-13
|
4KB
|
137 lines
.key var1
; Auto-Script
; Copyright Amiga Computing 1991. Written by Stevie Kennedy
; set fail level above 20 so operation won't be halted just because
; a directory or file already exists on target disk
path sys:system add
echo " *e[32m*e[1m######################################################## "
echo " ** ** "
echo " ** This script file will create a bootable system disk ** "
echo " ** in your external drive. To use it, you must have a ** "
echo " ** newly formatted disk in df1: and a copy of Workbench ** "
echo " ** or the May 1991 coverdisk in you external drive. You ** "
echo " ** may format a disk from this script if you don't have ** "
echo " ** a formatted one to hand. ** "
echo " ** ** "
echo " ** You must have the SimpleStart file in df0:s, and ** "
echo " ** you are advised to use a coverdisk as your source ** "
echo " ** disk. This is because the script expects to find ** "
echo " ** files such as SIZE and KDVIII. ** "
echo " ** ** "
echo " ** The script works by MAKEDIRing as many drawers ** "
echo " ** as needed, then copies the relevant files across to ** "
echo " ** them. It`s a fairly straightforward script file, and ** "
echo " ** not very flexible, but serves as a good example of ** "
echo " ** how you can use AmigaDOS for more complicated tasks. ** "
echo " ** ** "
echo " ######################################################## "
echo " "
; this section carries out all the questioning
; note the second IF ... ENDIF construct nested inside
; the main IF ... ELSE ... ENDIF sequence
ask " *e[33mDo you wish to continue? [Y/N] "
if warn
echo " "
ask " Do you want to format a disk in df1: ?"
if warn
echo " "
format drive df1: name bootable
endif
echo " "
echo " *e[43m*e[32mNow creating bootable system disk!*e[0m"
echo " "
echo " "
else
echo " *e[32mO.K. Bye Bye!*e[0m"
echo " "
; the next command jumps forward to the end of the script
; by locating the *end* label
skip end
endif
cd df1:
lab makedrawers
echo " Creating directories"
makedir c
makedir s
makedir devs
makedir l
makedir libs
makedir system
cd df1:devs
makedir printers
makedir keymaps
lab copyfiles
echo " "
echo " Copying files across ... please wait"
; Please note that a Shell icon file has been put in CoverDisk19's C:
; directory. If you use this script from a different disk, you might
; need to use CD SYS: then COPY SHELL.INFO TO DF1: from the disk's root
; directory where shell.info is usually found
cd c:
copy shell.info to df1:
copy brun to df1:c
copy copy to df1:c
copy cd to df1:c
copy dir to df1:c
copy endcli to df1:c
copy echo to df1:c
copy execute to df1:c
copy iconx to df1:c
copy kdviii to df1:c
copy loadwb to df1:c
copy mount to df1:c
copy resident to df1:c
copy setpatch to df1:c
copy winsize to df1:c
copy run to df1:c
cd l:
copy ram-handler to df1:l
copy disk-validator to df1:l
copy Shell-Seg to df1:l
copy Newcon-Handler to df1:l
cd libs:
copy icon.library to df1:libs
cd s:
copy shell-startup to df1:s
copy SimpleStart to df1:s
rename df1:s/simplestart df1:s/startup-sequence
cd devs:
copy mountlist to df1:devs
copy system-configuration to df1:devs
copy printers/generic to df1:devs/printers
copy keymaps/gb to df1:devs/keymaps
cd sys:system
copy cli to df1:system
copy diskcopy to df1:system
copy format to df1:system
; and just to make sure the disk will boot...
install drive df1:
echo " "
echo "*e[33m*e[1m VOILA! *e[32mOne bootable system disk!*e[0m"
echo " "
lab end